package com.gxuwz.bignews.controller;

import android.content.Context;

import com.gxuwz.bignews.model.db.UserDao;
import com.gxuwz.bignews.model.entity.User;

public class LoginController {
    private UserDao userDao;

    public LoginController(Context context) {
        userDao = new UserDao(context);
    }

    public User login(String phone, String password) {
        return userDao.getUserByPhoneAndPassword(phone, password);
    }
} 